// test
export default query => {
  return new Promise((resolve, reject) => {
    const tk = query.tk
    const id = parseInt(query.id)
    if (!id || !tk) {
      reject(new Error('参数不完整'))
    }
    const answer = null
    if (id === 1) {
      resolve({
        msg: '成功返回数据'
      })
    } else {
      reject(new Error('没有数据信息'))
    }
  })
}
